package com.hubu.tree;
import com.hubu.tree.util.Comparator;
import com.hubu.tree.util.Visitor;
public class BinaryTree <T> extends AbstractTree<T> implements Tree<T>{
    public BinaryTree(Comparator<T> comparator, Visitor<T> visitor) {
        super(comparator, visitor);
    }
    @Override
    public T add(T value) {
        if(root==null){
            root=createNode(value,null,null);
            return null;
        }
        return null;
    }
}
